#include "all.h"
/*设备信息*/
struct tBed_info   Bed_info;
/*开关机状态*/
enum	tState	Power_State;
/*电源*/


/*设备关机*/
void Device_ON(void)
{
	LCD_FillScreen(0x0000);
	Lcd_imga(2);
	/*如果有注册就开启蓝牙*/
	if(Bed_info.Wifi == 1) 
	{
		Chinese_Show_one(30,40,0,32,0);
	}	
	else
	{
		LCD_Fill(30,40,30+32,40+32,0x0000);
	}		
	Chinese_Show_one(LCD_font_x1, LCD_font_y, 7, 40, 0);  // 	平
	Chinese_Show_one(LCD_font_x2, LCD_font_y, 8, 40, 0);  // 	躺
	Chinese_Show_one(LCD_font_x3, LCD_font_y, 25, 40, 0);  // 模
	Chinese_Show_one(LCD_font_x4, LCD_font_y, 24, 40, 0);  // 式
	Battery_Display_Set();/*开启电量显示*/
	LCD_BLK_100();	
	Power_State = ON;		
}	
/*设备关机*/
void Device_OFF(void)
{	
	//NRF_Data_Storage7(0xA1,0x11,0x00,0x00,0x00,0x00,0x00);	
	Battery_Display_Dis();
	Power_State = OFF;
	LCD_BLK_0();		
	Boot_Up = 0;
	lcd_slepp_en();
	Delay_ms(10);
}	

/*App任务*/
void App_Task(void)
{
	NRF24L01_Handle();
}	

